package com.buba.springcloud.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class HfOrders {

  private long id;
  private String orderCode;
  private long orderMoney;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date orderCreatetime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date orderPaymenttime;
  private String orderStatus;
  private String username;
  private String address;
  private String phone;
  private List<HfFoods> foods;

}
